package com.itheima.Jiuye11;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

public class inpuanoutput {
    public static void main(String[] args) throws IOException {
        FileInputStream input = new FileInputStream("E:\\图片\\战城.jpg");  //创建字节输入流，准备读
        FileOutputStream output = new FileOutputStream("C:\\Users\\纹龍\\Desktop\\复制版战城.jpg");//创建字节输出流，准备写
        int a ;
         while ((a = input.read())!=-1){
            output.write(a);
        }
        input.close();
        output.close();
    }
}
